# Contributor: Paul Kilar <pkilar@gmail.com>
# Maintainer: Paul Kilar <pkilar@gmail.com>
pkgname=lshw
pkgver=02.19.2
_pkgver="B.$pkgver"
pkgrel=0
pkgdesc="Hardware Lister"
url="https://ezix.org/project/wiki/HardwareLiSter"
arch="all"
license="GPL-3.0-or-later"
makedepends="sqlite-dev linux-headers"
subpackages="$pkgname-doc $pkgname-lang"
source="https://ezix.org/software/files/lshw-$_pkgver.tar.gz
	fix-musl-sc_long_bit.patch
	wrapper-for-basename.patch
	"
builddir="$srcdir"/$pkgname-$_pkgver

build() {
	make RPM_OPT_FLAGS=-DNONLS
}

check() {
	./src/lshw -version
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="f3abc6241fe7912740f11b5b97a1f7778cb7cc69f5209b83063cbc1d3aa7b082dedb3aac4119ce100391547400ed6bb2d413ca47de50794e1066f31961be41a5  lshw-B.02.19.2.tar.gz
21d5692b50086018685232261e4851cd6dcd84660512dde58317c06a3b10d73d04d7f0b164264cb9c4dd4154947672dbbf1f288291bab5ec952e57458b71ab42  fix-musl-sc_long_bit.patch
7adbb35c9ba0af3ba698c472226781ae1a518deb1f85f6cb8b53ac05c84b40ae94cbfd5761b58709b1d5726660f9eb159cf1233a77b2fa6565010dde17167b7d  wrapper-for-basename.patch"
